package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.entity.ApiConfirmOrderInfo;
import com.jiukuaidao.zhulin.module.order.PostOrderInfo;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/7
 * Description :
 */
public class ApiConfirmOrder extends ApiBaseParamAbstract {
    public PostOrderInfo mParamsInfo;

    public ApiConfirmOrder(PostOrderInfo orderInfo, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParamsInfo = orderInfo;
    }

    @Override
    public Call<RootResult<ApiConfirmOrderInfo>> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getConfirmOrder(mParamsInfo);
    }
}
